import request from '@/utils/request'

// 注册方法
export function getNewsList(data) {
    return request({
      url: '/news/getlist',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

  // 注册方法
export function addNews(data) {
    return request({
      url: '/news/addNews',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

  export function updateNews(data) {
    return request({
      url: '/news/updateNews',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

  export function deleteNews(data) {
    return request({
      url: '/news/deleteNews',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }